<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link rel="stylesheet" href="/css_system/common.css" />
    <link rel="stylesheet" href="/css_system/main.css" />
    <link href="/js_system/jQueryUI/jquery-ui.css" rel="stylesheet">

    <!-- 对话框 -->
    <link rel="stylesheet" href="/js_system/easydialog/easydialog.css" />
    <script type="text/javascript" src="/js_system/easydialog/easydialog.js"></script>
    <script type="text/javascript" src="/js_system/cueeasy.js"></script>
    <script type="text/javascript" src="/js_system/jquery.min.js"></script>
    <!-- 上传图片 -->
    <script type="text/javascript" src="/uploadify/jquery.uploadify.js" ></script>
    <link rel="stylesheet" type="text/css" href="/uploadify/uploadify.css">
    <script type="text/javascript" src="/js_system/books.js"></script>
</head>
<body>
<div class="container">
    <div class="location clearfix">
        <div class="here_area fl"><strong>当前位置：</strong>书籍管理&nbsp;&nbsp;&raquo;&nbsp;&nbsp;标签管理</div>
    </div>

    <div id="tabs">
        <ul>
            <li><a href="#tabs-1">标签列表</a></li>
            <li><a href="#tabs-2">新增标签</a></li>
        </ul>

        <div id="tabs-1">
                <table class="dataTable">
                    <tr>
                        <th>id</th>
                        <th>标签名称</th>
                        <th>管理</th>
                    </tr>
                    @foreach($tags as $tag)
                        <tr>
                            <td >{{$tag->id}}</td>
                            <td >{{$tag->tag}}</td>
                            <td ><a href="/admin_system/books/tags?id={{$tag->id}}" class="delBtn" onclick="return confirm('确定删除吗');"><i class="invisibleImg"></i></a> </td>
                        </tr>
                    @endforeach
                </table>
        </div>



        <div id="tabs-2">
            <form action="/admin_system/books/tags" method="post">
                <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                <table class="dataTable">
                    <tr>
                        <td class="ltd">标签名称</td>
                        <td class="rtd">
                            <input id="txtTypeName" class="input-text"  name="tag" required/>
                        </td>
                    </tr>
                    <tr>
                        <td class="ltd"></td>
                        <td class="rtd">
                            <input type="submit" class="btn btn_save" value="添加" >
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
</div>
<script src="/js_system/jQueryUI/jquery-ui.js"></script>
<script src="/js_system/jqueryui.js"></script>
</body>
</html>